//
//  WBStatus.swift
//  SwiftWeibo
//
//  Created by Lausen on 2017/4/16.
//  Copyright © 2017年 id. All rights reserved.
//

import UIKit
import YYModel

class WBStatus: NSObject {

    /// Int类型,在64位的机器是64,在32位机器就是32位的,
    /// 如果不写Int64在 iPad2 / iPhone5 /iPhone5C / 4s /4 都无法正常运行
    var id: Int64 = 0
    /// 微博的创建时间
    var created_at: String?
    /// 微博的来源 -- 发布微博的客户端
    var source: String?{
        
        didSet{
        
            source = "来自 " + (source?.lau_href()?.text ?? "")
        }
    }
    ///发布的微博内容
    var text: String?
    /// 用户的模型
    var user: WBUser?
    /// 配图连接的url数组
    var pic_urls: [WBStatusPicture]?
    /// 转发微博中,原创微博的内容
    var retweeted_status: WBStatus?
    /// reposts_count	int	转发数
    var reposts_count: Int = 0
    /// comments_count	int	评论数
    var comments_count: Int = 0
    /// attitudes_count	int	表态数
    var attitudes_count: Int = 0
    
    
    override var description: String{
        
        return yy_modelDescription()
    }
    
    class func modelContainerPropertyGenericClass() -> [String: AnyClass] {
        
        return ["pic_urls":WBStatusPicture.self]
    }
}
